<%@ page import="java.util.List" %>
<%@ page import="PoJo.Students" %>
<%@ page import="java.util.ArrayList" %><%--
  Created by IntelliJ IDEA.
  User: Distance
  Date: 2021/10/17
  Time: 20:33
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<style>
    table{
        border: 1px;
        width: 500px;

    }
</style>
<head>
    <title>Title</title>
</head>
<body>
     <%
         List<Students> list = new ArrayList<>();
         for (int i = 0; i < 10; i++) {
             list.add(new Students(i+1,"Student"+(i+1),null,null));
         }
     %>
<table border="1" cellspacing="0" cellpadding="0"  >
    <%
        for (Students list1 :list){
            %>
    <tr>
        <td><%= list1.getId()%></td>
        <td><%= list1.getName()%></td>
        <td>修改 OR 删除</td>
  <tr>
    <%}%>

</table>
</body>
</html>
